package com.credit.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import com.mysql.fabric.xmlrpc.base.Array;

public class ParamsConstant {
	
	public static final String QINIU_URL = "http://ouph3kbvm.bkt.clouddn.com/";
	public static final String ALIPAY_APP_ID = "2017072407877160";
	public static final String APP_PRIVATE_KEY = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMTTlBqjIIKaKY9b"
			+ "hnBsgTRt5aExe3JPUP2POr0tLCzuKFBenZeh7NjQj2JpLTTh12b2PyY3v4Xm9vp/"
			+ "cJsHwKtXQwHlBD+kRFSVdnmhRAnNhwpXK3TAvIE9NJUOeyISN2wWVq4f+nz5OuWH"
			+ "X8oMIHDHnN4+5x3QFYm3uHyMhCvTAgMBAAECgYBQ2fzHqGTNYVhbHCSwf9HfYJlo"
			+ "SrRD85L4ZWKinTC9UCNdSFCCHjD1q06LBVtdkrvx/otYPqQ88/BWXA08kcWxo9Xc"
			+ "3rQADFi+9juqRPdsm4Fw2u6S3t3MIwe5thcqbw+YU/+OEU9pui85BG9Poo1ZHukh"
			+ "/XHwbuaWqjtSC393aQJBAO1OFKcI9Zakbf7uJ+dsqVGQQG0bMKY1BRh5caazkV+k"
			+ "XSoDrRwI4Cx+/GHdOEe3/Rq1pzDlHSVs74xIogi5zr8CQQDUVSKaWzFm3KSrcm79"
			+ "VO6rA/5kgsKLb7YuLz/XB7NUCsu3Gg1XOzH0/zTG/AMXRbLOIsNlpXCwEbZzug/C"
			+ "VnvtAkEAnQhWUlJzccRNpa0jatlVEkxK1ehwQQxE2vVCZ/Xb9VZm8C6Ol0aoUcmW"
			+ "aYxiedMfAlXC1XBH4UQ9IK/PycZrMQJAQiiUs4uehPJSzKjHNF/2TYrdBOxJObEB"
			+ "DrriJVnc4l7Kwq53YaqsEi5Cf42eWO36nIfwYgd+aR3bv4tFxcO0sQJBAIfGPNop"
			+ "bvSflbUFTKr1zRdzgWFWeCp2NVXSH6qTvObQ3m+yiqq5vxd9bp74x0uL8wrVZh7j"
			+ "S+1LczGz6mosw0I=";
	public static final String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";
	//支付宝回调地址
	public static final String ALIPAY_NOTIFY_URL = "http://47.94.192.65:8080/api/payment/notify";
	
	public static final String idcard_reg = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)$";
	
    public static final Integer PAGESIZE = 20;
	
	//短信验证码cahce前缀
	public static final String SMS_CODE_CACHE_PREFIX = "sms_register_verify_code";
	//图形验证码cahce前缀
	public static final String GRA_CODE_CACHE_PREFIX = "gra_register_verify_code";
	//订单推送zset前缀
	public static final String CREDIT_ORDER_PUSH_MESSAGE = "credit_order_push_message";
	
	//短信限制zset前缀
	public static final String SMS_CODE_TIME_LIMIT = "sms_code_time_limit";
	
	public static final Map<String,String> CODE_NAME_MAP = new HashMap<String,String>();

	
	public static final TreeMap<Integer,Integer> COIN_LIST_MAP = new TreeMap<Integer,Integer>();//金币购买展示
	public static final Map<Integer,Integer> COIN_POINTS_MAP = new HashMap<Integer,Integer>();//金币购买展示
	
	
	public static final Map<String,String> PROCEEFLAG_USER_MAP = new HashMap<String,String>(); //贷款用户
	public static final Map<Integer,String> PROCEEFLAG_MANAGER_MAP = new HashMap<Integer,String>();//贷款经理
	
	public static final List<String> PRODUCT_USELESS_FIELD_LIST = new ArrayList<String>();//产品实体无用字段
	
	public static final Map<String,Integer> appTypeMap = new HashMap<String,Integer>();
	
	
	static{
		CODE_NAME_MAP.put(SMS_CODE_CACHE_PREFIX, "手机");
		CODE_NAME_MAP.put(GRA_CODE_CACHE_PREFIX, "图形");
		
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_SUBMIT+"_1", "提交申请成功");
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_NOTIFY+"_1", "已通知{number}位信贷经理,请等待经理接单");
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_TAKING+"_1", "{number}位信贷经理已接单,经理会马上联系您");
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_CHECK+"_1", "您的贷款申请资料信息,{manager}已审核通过,请等待放款");
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_LOAN+"_1", "恭喜您成功获得{manager}的放款");
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_NOTIFY+"_-1", "抱歉您当前申请所选择的城市还没有信贷经理入住，稍后我们会派遣信贷经理入驻该城市");
		PROCEEFLAG_USER_MAP.put(CodeValueUtil.PROCESSFLAG_LOAN+"_-1", "抱歉由于您的资质原因未能成功放款，建议您去个人中心完善资质认证");
		
		
		COIN_LIST_MAP.put(100, 100);//100金币100元
		COIN_LIST_MAP.put(200, 190);//200金币190元
		COIN_LIST_MAP.put(300, 270);//300金币270元
		COIN_LIST_MAP.put(500, 425);//500金币425元 ,送100积分
		COIN_LIST_MAP.put(1000, 800);//1000金币800元，送200积分
		COIN_LIST_MAP.put(2000, 1500);//2000金币1500元，送300积分
		COIN_LIST_MAP.put(3000, 2200);//3000金币2200元，送400积分
		COIN_LIST_MAP.put(5000, 3500);//5000金币3500元，送500积分
		
		COIN_POINTS_MAP.put(100, 0);
		COIN_POINTS_MAP.put(200, 0);
		COIN_POINTS_MAP.put(300, 0);
		COIN_POINTS_MAP.put(500, 100);
		COIN_POINTS_MAP.put(1000, 200);
		COIN_POINTS_MAP.put(2000, 300);
		COIN_POINTS_MAP.put(3000, 400);
		COIN_POINTS_MAP.put(5000, 500);
		
		
		//产品无用字段*/
		PRODUCT_USELESS_FIELD_LIST.add("carLoan");
		PRODUCT_USELESS_FIELD_LIST.add("houseLoan");
		PRODUCT_USELESS_FIELD_LIST.add("loanAmountMax");
		PRODUCT_USELESS_FIELD_LIST.add("loanAmountMin");
		PRODUCT_USELESS_FIELD_LIST.add("loanDaysMax");
		PRODUCT_USELESS_FIELD_LIST.add("loanDaysMin");
		PRODUCT_USELESS_FIELD_LIST.add("monthFeeRate");
		PRODUCT_USELESS_FIELD_LIST.add("paymentMethod");
		PRODUCT_USELESS_FIELD_LIST.add("serviceFeeRate");
		PRODUCT_USELESS_FIELD_LIST.add("ageMin");
		PRODUCT_USELESS_FIELD_LIST.add("ageMax");
		PRODUCT_USELESS_FIELD_LIST.add("sex");
		PRODUCT_USELESS_FIELD_LIST.add("creditLimit");
		
		appTypeMap.put("xmqd", 1);//经理端
		appTypeMap.put("xmdk", 2);//用户端
	}
	
	public static void main(String[] args){
		System.out.println(ParamsConstant.appTypeMap.get("xmqd"));
	}

}
